.class Lcom/example/m6shop/GoodsShowActivity$5;
.super Ljava/lang/Object;
.source "GoodsShowActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/GoodsShowActivity;->inittimeWindow()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/GoodsShowActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/GoodsShowActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/GoodsShowActivity$5;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    .line 425
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 8
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 427
    invoke-static {}, Lmyclass/Util;->isFastDoubleClick()Z

    move-result v5

    if-eqz v5, :cond_0

    .line 448
    :goto_0
    return-void

    .line 430
    :cond_0
    iget-object v5, p0, Lcom/example/m6shop/GoodsShowActivity$5;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    # getter for: Lcom/example/m6shop/GoodsShowActivity;->mPopupWindow:Landroid/widget/PopupWindow;
    invoke-static {v5}, Lcom/example/m6shop/GoodsShowActivity;->access$2(Lcom/example/m6shop/GoodsShowActivity;)Landroid/widget/PopupWindow;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/PopupWindow;->dismiss()V

    .line 431
    iget-object v5, p0, Lcom/example/m6shop/GoodsShowActivity$5;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    const v6, 0x7f070065

    invoke-virtual {v5, v6}, Lcom/example/m6shop/GoodsShowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 434
    .local v4, "selectpstime":Landroid/widget/TextView;
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    iget-object v5, p0, Lcom/example/m6shop/GoodsShowActivity$5;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    # getter for: Lcom/example/m6shop/GoodsShowActivity;->typestr:Ljava/lang/String;
    invoke-static {v5}, Lcom/example/m6shop/GoodsShowActivity;->access$1(Lcom/example/m6shop/GoodsShowActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v2, v5}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 435
    .local v2, "json":Lorg/json/JSONObject;
    const-string v5, "msg"

    invoke-virtual {v2, v5}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    .line 436
    .local v1, "jarray":Lorg/json/JSONObject;
    const-string v5, "typelist"

    invoke-virtual {v1, v5}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    .line 437
    .local v3, "myarray":Lorg/json/JSONArray;
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v5

    invoke-virtual {v3, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v5

    const-string v6, "name"

    invoke-virtual {v5, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 439
    iget-object v5, p0, Lcom/example/m6shop/GoodsShowActivity$5;->this$0:Lcom/example/m6shop/GoodsShowActivity;

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v6

    invoke-virtual {v3, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    const-string v7, "id"

    invoke-virtual {v6, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/example/m6shop/GoodsShowActivity;->typeid:Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 442
    .end local v1    # "jarray":Lorg/json/JSONObject;
    .end local v2    # "json":Lorg/json/JSONObject;
    .end local v3    # "myarray":Lorg/json/JSONArray;
    :catch_0
    move-exception v0

    .line 444
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
